// import { Component, OnInit, Injector, Input, Output, EventEmitter, ViewChild, ElementRef } from '@angular/core';
// import { AppComponentBase } from '@shared/common/app-component-base';
// // import { ImportRecordServiceProxy } from '@shared/service-proxies/service-proxies';
// import { ModalDirective } from 'ngx-bootstrap';
// import * as _ from 'lodash';
// // import { ImportToExcelComponent } from './import-to-excel.component';
// @Component({
//     selector: 'excelModal',
//     templateUrl: './excel-modal.component.html'
// })
// export class ExcelModalComponent extends AppComponentBase {
//     @ViewChild('createOrEditModal') modal: ModalDirective;
//     @ViewChild('importToExcel') importToExcel: ImportToExcelComponent;

//     @Output() modalSave: EventEmitter<any> = new EventEmitter<any>();

//     constructor(injector: Injector, private _importRecordService: ImportRecordServiceProxy) {
//         super(injector);
//     }

//     active = false;
//     loading = false;
//     title = '';
//     recordId;
//     excelType = '';
//     fileData: any;

//     show(excelType?: string, title?: string): void {
//         this.active = true;
//         this.excelType = excelType;
//         this.title = title;
//         this.importToExcel.clearData();
//         this.modal.show();
//     }
//     close(): void {
//         this.active = false;
//         this.modal.hide();
//     }

//     importFinish() {
//         this.close();
//     }

//     importSuccess() {
//         this.modalSave.emit();
//     }
// }
